// TrainingImage.java
// Copyright (c) 2003-2010 Ronald B. Cemer
// All rights reserved.
// This software is released under the BSD license.
// Please see the accompanying LICENSE.txt for details.
package net.sourceforge.javaocr.ocrPlugins.neuralNetOCR;

import java.util.logging.Logger;

import net.sourceforge.javaocr.scanner.PixelImage;

/**
 * Class to hold a training image for a single character.
 * A training image is a representative image for a single character, and is
 * used to determine the likelihood that a given character image is a
 * particular character.
 * @author Ronald B. Cemer
 */
public class TrainingImageNeural extends PixelImage
{
	private SampleData charData;
	
    /**
     * Construct a new <code>TrainingImage</code> object from an array of
     * gray scale pixels.
     * @param pixels An array of pixels in the range 0-255.
     * @param width The width of the image.
     * @param height The height of the image.
     * @param topWhiteSpacePixels The number of scan lines at the top of this character cell which
     * are all white.  These are excluded from the width and height of the training image.
     * @param bottomWhiteSpacePixels The number of scan lines at the bottom of this character cell
     * which are all white.  These are excluded from the width and height of the training image.
     */
    public TrainingImageNeural(
            int[] pixels,
            int width,
            int height,
            int topWhiteSpacePixels,
            int bottomWhiteSpacePixels)
    {
        super(pixels, width, height);
    }

    
    private static final Logger LOG = Logger.getLogger(TrainingImageNeural.class.getName());

	public SampleData getCharData() {
		return charData;
	}

	public void setCharData(SampleData charData) {
		this.charData = charData;
	}
}
